home *** CD-ROM | disk | FTP | other *** search
/ CD Concept 6 / CD Concept 06.iso / mac / UTILITAIRE / U-Tile+ 3.0.4 / Examples of Macro Commands next >
Text File  |  1994-12-09  |  1KB  |  34 lines

  1. # TO EXECUTE THE FOLLOWING MACRO:
  2. #   Ñ TYPE THE CORRECT PATHNAME INTO THE COMMAND ╥Folder╙ BELOW;
  3. #   Ñ DO ╥Select all╙ IN THE EDIT MENU; and finally
  4. #   Ñ HIT THE ENTER KEY.
  5.  
  6. # The character "#" means that the rest of the line is just comments,
  7. # which will be ignored by U-Tile+╒s parser.
  8.  
  9. # First set the folder in which you are working.
  10. # IMPORTANT: Don╒t forget to modify the following line!
  11.  
  12. Folder("Your Hard Disk:╔╔╔╔╔╔:U-Tile+ Folder");
  13.  
  14. # Now create a list of the words in the text document ":U-Tile+ READ ME".
  15. # The colon character before the file name tells U-Tile+ to look
  16. # in the folder specified above with the "Folder" command".
  17.  
  18. CatalogueWords(":U-Tile+ READ ME",
  19.    "Pan-European",
  20.    Liaison("-"),
  21.    ignoreCase);
  22.  
  23. # Now let's close the text document because we no longer need it.
  24.  
  25. CloseDocument(":U-Tile+ READ ME");
  26.  
  27. # Now sort the word list to obtain a list in decreasing order of
  28. # frequency. The character "┐" means that the secondary alphabetic
  29. # ordering of column 1 is normal, i.e. not inverse.
  30.  
  31. Sort(":U-Tile+ READ ME.Lst",
  32.    2, numeric, inverse,  # Sort column 2 in inverse numeric order
  33.    1, alphabetic, ┐);    # Secondarily, sort column 1 alphabetically
  34.